package com.starter;

import com.utils.spring.SpringContextUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

import java.io.Console;
import java.util.Scanner;

/**
 * @author lzb
 * 项目启动类
 */
@SpringBootApplication
@MapperScan("com.dao")
@ComponentScan({"com.service","com.controller","com.config","com.exception","com.entity"})
public class ProjectStarterApplication {
	public static void main(String[] args) {
		ApplicationContext context = SpringApplication.run(ProjectStarterApplication.class,args);
		SpringContextUtil.setApplicationContext(context);

	}
}
